#include <iostream>

int main() {
    void copy_string(char from[], char to[]);
    char a[] = "I am a teacher.";
    char b[] = "You are a student.";
    char *from = a, *to = b;
    printf("String a is: %s\nString b is: %s\n", a, b);
    printf("Copy a to string b\n");
    copy_string(from ,to);
    printf("String a is: %s\nString b is: %s\n", a, b);
    return 0;
}

void copy_string(char from[], char to[]) {
    int i = 0;
    while (from[i] != '\0') {
        to[i] = from[i];
        i++;
    }
    to[i] = '\0';
}
